using FubuMVC.Core.Behaviors;

namespace behaviors.Behaviors
{
    public class SimpleBehavior
        : IActionBehavior
    {
        public IActionBehavior InnerBehavior { get; set; }

        public void Invoke()
        {
            //before inner behavior
            InnerBehavior.Invoke();
            //after inner behavior
        }

        public void InvokePartial()
        {
            InnerBehavior.InvokePartial();
        }
    }
}